package com.langhang.controller;

import com.langhang.entity.TbSpecificationOption;
import com.langhang.service.TbSpecificationOptionService;
import com.langhang.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/tbspecop")
@CrossOrigin
public class TbSpecificationOptionController {
    @Autowired
    private TbSpecificationOptionService tbSpecificationOptionService;
    @PostMapping("/saveop")
    public R save(@RequestBody TbSpecificationOption tbspecop){
        return tbSpecificationOptionService.saveop(tbspecop) ? R.ok().message("添加成功！") : R.error().message("添加失败！");
    }
}
